﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.waitingQueue {
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class CreateWaitingQueueRoomCommand extends Command {

		[Inject]
        public var worldFactory:WorldFactory;
		[Inject]
        public var worldModel:WorldModel;

        override public function execute():void{
            var _local1:Object = {room_type:GameConstants.TYPE_WAITING_QUEUE, items:[], id:GameConstants.TYPE_WAITING_QUEUE, slot:-1};
            var _local2:IArea = this.worldFactory.createArea(_local1);
            this.worldModel.addRoom(_local2);
        }

    }
}//package net.wooga.pets.controllers.waitingQueue 
